public class ScanDevice
extends java.lang.Object
| Constructor and Description |
|---|
ScanDevice() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
closeScan()
Turn off the power for the scanner.
|
int |
getIndicatorLightMode()
get indicator lamp mode .
|
int |
getOutScanMode()
get barcode output mode.
|
boolean |
getScanBeepState()
get beep status.
|
java.lang.String |
getScanCodeValue()
get scan data at broadcast mode.
|
int |
getScanLaserMode()
get laser continuous mode .
|
int |
getScannerType() |
boolean |
getScanVibrateState()
get vibrate status.
|
boolean |
isScanOpened()
get scanner status.
|
boolean |
openScan()
Turn on the power for the scanner.
|
boolean |
resetScan()
reset scanner.
|
void |
setIndicatorLightMode(int mode)
Blink indicator lamp when the scan is successful.
|
boolean |
setOutScanMode(int mode)
Set barcode output mode.
1.Broadcast mode. The scan results to be sent as a broadcast Intent. Application should register an action as scan.rcv.message broadcast listerner.For more details refer to the sample. 2.Editbox Mode. The scan results to be send to the edit box in focus. 3.Keyboard Mode. The scan results to be send via emulate keyevents. |
boolean |
setScanBeep()
Play sound when the scan is successful.
|
void |
setScanLaserMode(int mode)
Set laser continuous mode.
|
boolean |
setScanUnBeep()
No prompt sound when the scan is successful.
|
boolean |
setScanUnVibrate()
Not Vibrate when the scan is successful.
|
boolean |
setScanVibrate()
Vibrate when the scan is successful.
|
boolean |
startScan()
start decoding.
|
boolean |
stopScan()
stop decoding.
|
public boolean setOutScanMode(int mode)
mode - value: 0 Broadcast mode,1 Editbox Mode,2 Keyboard Mode.public int getOutScanMode()
public boolean setScanBeep()
public boolean setScanUnBeep()
public boolean getScanBeepState()
public boolean setScanVibrate()
public boolean setScanUnVibrate()
public boolean getScanVibrateState()
public void setIndicatorLightMode(int mode)
mode - 1 indicator lamp,0 no indicator lamp.public int getIndicatorLightMode()
public void setScanLaserMode(int mode)
mode - 4 start continuous mode,8 stop continuous mode.public int getScanLaserMode()
public boolean openScan()
public boolean closeScan()
public boolean isScanOpened()
public boolean stopScan()
public boolean startScan()
public boolean resetScan()
public int getScannerType()
public java.lang.String getScanCodeValue()